package org.linlinjava.litemall.admin.enums;

/**
 * @author wj
 * @date 2021/8/5 10:02
 */
public enum AdminErrorCode {
    //1000-1100开始  登录相关

    BINGDING_PHONE_NOT_NULL(1000,"手机号码不能为空"),

    PLEASE_SEND_PHONE_CODE(1001,"请先发送验证码"),

    PHONE_CODE_NOT_NULL(1002,"验证码不能为空"),

    PHONE_CODE_NOT_MATCH(1003,"验证码不匹配"),

    PHONE_VOICE_CODE_ERROR(1004,"语音验证码发送失败"),

    PHONE_CODE_TOO_MUCH(1005,"验证码发送次数过多"),

    PASSWORD_NOT_NULL(1006,"密码不能为空"),

    //满减相关报错600-630
    ACTIVITYTIME_NOT_NULL(600,"活动时间不能为空"),

    //锁具相关报错 650-700
    STORE_HOSPITAL_NOT_EXIST(650,"门店绑定的医院不存在"),

    GOODS_PRODUCT_NOT_EXIST(651,"商品规格不存在"),

    EQU_TYPE_NOT_EXIST(652,"设备类型不存在"),

    RFID_IS_EXIST(653,"Rfid已经存在"),

    RFID_CANT_REPEAT(654,"Rfid不能重复"),

    OLD_RFID_NOT_EXIST(655,"旧Rfid不存在"),

    RFID_NOT_EXIST(655,"Rfid不存在"),

    STORE_ONLY_ONE_MEDICAL_LOCKS(656,"一个门店只允许添加一个医柜锁"),


    MEDICAL_LOCKS_NOT_EXIST(657,"医柜锁不存在"),


    SCAN_GUNS_NOT_EXIST(658,"扫码枪不存在"),

    MEDICAL_LOCKS_IS_EXIST(659,"医柜锁已存在"),

    SCAN_GUNS_IS_BINDING(660,"扫码枪已被绑定"),

    NUMBER_CODE_OUT_RANGE(661,"编号超出范围"),

    CONTROL_IS_EXIST(662,"控制器已经存在"),

    INVENTORY_IS_NOT_EXIST(663,"获取库存失败-无库存"),

    INVENTORY_IS_NOT_FULL(664,"获取库存失败-库存不足"),

    //在线服务相关报错  750-850
    SERIVCE_TIME_TEMPLATE_NOT_NULL(750,"服务时间模板不能为空"),

    SAME_CITY_IN_ONE_SERVICE(751,"同一个城市不能在一个服务中添加多次"),

    DEPARTMENT_NAME_IS_EXIST(752,"科室名称已存在"),

    DEPARTMENT_IS_CONCAT_DOCTOR(753,"科室已关联医生，请解除关联后操作"),

    PHONE_CODE_IS_EXIST(754,"手机号码已存在"),

    SERVICE_TIME_NAME_IS_EXIST(755,"名称已存在"),


    //店铺管理相关报错  1150-1300



    //抵扣金相关报错1350-1400
    RULE_NAME_IS_EXIST(1350,"规则名称已存在");

    private Integer code;

    private String message;

    AdminErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
